/* 接口管理 */
import { get, post, postFormatd } from "./http";
let host='',lottery='';

if (process.env.NODE_ENV === 'development') {
    host = '/api'
    lottery="/lottery"
}else {
  	host = process.env.VUE_APP_baseUrl;
    lottery = process.env.VUE_APP_loteUrl
}
let port={
host,lottery
}
export default port;


// 登录--获取验证码
export const sendVcode = params => get(host + '/login/sendVcode.json', params)
// 登录--登录
export const login = params => get(host + '/login/login.json', params)

//我的账户--获取我的账户信息接口
export const getMyAccount = params => get(host + '/myAccount/getMyAccount.json', params)
//我的账户--判断会员是否可转让接口
export const checkCanTrans = params => get(host + '/myAccount/checkCanTrans.json', params)
//我的账户--获取商户信息接口
export const getStore = params => get(host + '/myAccount/getStore.json', params)
//我的账户--确认转让接口
export const confirmTrans = params => post(host + '/myAccount/confirmTrans.json', params)
//我的账户--获取所有银行
export const getAllBank = params => get(host + '/myAccount/getAllBank.json', params)

//我的账户--分页查询交易记录接口
export const queryTransRecords = params => get(host + '/transRecords/queryTransRecords.json', params)
//我的账户--分查询交易记录详情接口
export const getTransRecordDetail = params => get(host + '/transRecords/getTransRecordDetail.json', params)

// 提现--查询轶善余额接口
export const getYsolMoney = params => get(host + '/cashOut/getYsolMoney.json', params)
// 提现--点击提现获取所有银行卡
export const getAllBankCard = params => get(host + '/cashOut/getAllBankCard.json', params)
// 提现--判断会员是否可提现接口
export const checkCanCashOut = params => get(host + '/cashOut/checkCanCashOut.json', params)
// 提现--提现
export const cashOutMoney = params => post(host + '/cashOut/cashOutMoney.json', params)
//我的账户--获取豆转让金额接口
export const getDouTransMoney = params => get(host + '/myAccount/getDouTransMoney.json', params)
